package cn.kgc.service;

import cn.kgc.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface EmpService {
    List<Emp> getAllEmp(Integer pageNo,Integer pageSize);
    Emp getEmpById(Integer id);
    void addEmp(Emp emp);
    void updateEmp(Emp emp);
    void deleteEmpById(Integer id);

    Integer countEmpByName(String name);

    Integer countEmp();
}
